package com.lianzai.payment.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 订单表表
 * 
 * @author zb
 * @email 1106900429@qq.com
 * @date 2018-10-29 10:50:29
 */
public class OrderInfoDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//订单Id
	private Long orderId;
	//订单编号
	private String orderCode;
	//订单总金额
	private BigDecimal orderPrice;
	//订单优惠金额
	private BigDecimal orderPrePrice;
	//订单原始总金额
	private BigDecimal orderOldPrice;
	//实际支付金额
	private BigDecimal payAmt;
	//订单状态 0未付款 1已付款 2付款失败
	private Integer orderStatus;
	//第三方支付订单号
	private String payNo;
	//用户ID
	private Long userId;
	//汽车ID
	private Long carId;
	//支付时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date payTime;
	//客户留言
	private String cusRemark;
	//支付方式 1微信公众号  2支付宝
	private Integer payType;
	//备注
	private String remark = "测试购买";
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	//月租起始时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startTime;

	//月租结束时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date endTime;

	//购买月份
	private Integer nums;

	private String userMobile;

	private String carNo;

	private Integer orderType;

	private String exitId;

	private String openId;

	/**
	 * 设置：订单Id
	 */
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	/**
	 * 获取：订单Id
	 */
	public Long getOrderId() {
		return orderId;
	}
	/**
	 * 设置：订单编号
	 */
	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	/**
	 * 获取：订单编号
	 */
	public String getOrderCode() {
		return orderCode;
	}
	/**
	 * 设置：订单总金额
	 */
	public void setOrderPrice(BigDecimal orderPrice) {
		this.orderPrice = orderPrice;
	}
	/**
	 * 获取：订单总金额
	 */
	public BigDecimal getOrderPrice() {
		return orderPrice;
	}
	/**
	 * 设置：订单优惠金额
	 */
	public void setOrderPrePrice(BigDecimal orderPrePrice) {
		this.orderPrePrice = orderPrePrice;
	}
	/**
	 * 获取：订单优惠金额
	 */
	public BigDecimal getOrderPrePrice() {
		return orderPrePrice;
	}
	/**
	 * 设置：订单原始总金额
	 */
	public void setOrderOldPrice(BigDecimal orderOldPrice) {
		this.orderOldPrice = orderOldPrice;
	}
	/**
	 * 获取：订单原始总金额
	 */
	public BigDecimal getOrderOldPrice() {
		return orderOldPrice;
	}
	/**
	 * 设置：实际支付金额
	 */
	public void setPayAmt(BigDecimal payAmt) {
		this.payAmt = payAmt;
	}
	/**
	 * 获取：实际支付金额
	 */
	public BigDecimal getPayAmt() {
		return payAmt;
	}
	/**
	 * 设置：订单状态 0未付款 1已付款 2付款失败
	 */
	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}
	/**
	 * 获取：订单状态 0未付款 1已付款 2付款失败
	 */
	public Integer getOrderStatus() {
		return orderStatus;
	}
	/**
	 * 设置：第三方支付订单号
	 */
	public void setPayNo(String payNo) {
		this.payNo = payNo;
	}
	/**
	 * 获取：第三方支付订单号
	 */
	public String getPayNo() {
		return payNo;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：汽车ID
	 */
	public void setCarId(Long carId) {
		this.carId = carId;
	}
	/**
	 * 获取：汽车ID
	 */
	public Long getCarId() {
		return carId;
	}
	/**
	 * 设置：支付时间
	 */
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}
	/**
	 * 获取：支付时间
	 */
	public Date getPayTime() {
		return payTime;
	}
	/**
	 * 设置：客户留言
	 */
	public void setCusRemark(String cusRemark) {
		this.cusRemark = cusRemark;
	}
	/**
	 * 获取：客户留言
	 */
	public String getCusRemark() {
		return cusRemark;
	}
	/**
	 * 设置：支付方式 1微信公众号  2支付宝
	 */
	public void setPayType(Integer payType) {
		this.payType = payType;
	}
	/**
	 * 获取：支付方式 1微信公众号  2支付宝
	 */
	public Integer getPayType() {
		return payType;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getNums() {
		return nums;
	}

	public void setNums(Integer nums) {
		this.nums = nums;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public String getCarNo() {
		return carNo;
	}

	public void setCarNo(String carNo) {
		this.carNo = carNo;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public String getExitId() {
		return exitId;
	}

	public void setExitId(String exitId) {
		this.exitId = exitId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
}
